<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('算账', ~{::title}, ~{::content}, ~{::script})}"
      xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>工单管理-算账</title>
</head>
<body>

<th:block th:fragment="templates">
    <script  type="text/html" id="template-detailsubmodule-detail">
        <div class="layui-card">
                <table class="layui-table">
                    <colgroup>
                        <col>
                        <col>
                        <col>
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>{{ sharingEstimateDetail.typeName}}分润</th>
                        <th>明细项目</th>
                        <th>预估金额</th>
                        <th>预估金额小计</th>
                    </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td rowspan="1">基础部分分润</td>
                            <td>基础分润</td>
                            <td>{{ sharingEstimateDetail.basicSharing.internalSettlementPrice | fenToYuan }}</td>
                            <td>{{ sharingEstimateDetail.basicSharing.totalAmount | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td rowspan="4">绩效部分分润</td>
                            <td>及时预约奖励金</td>
                            <td title="下单时间两小时内预约">{{ sharingEstimateDetail.perfSharing.onTimeDuty | fenToYuan }}</td>
                            <td rowspan="4">{{ sharingEstimateDetail.perfSharing.totalAmount | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td>准时上门奖励金</td>
                            <td title="预约时间前30分钟后10分钟上门">{{ sharingEstimateDetail.perfSharing.onTimeVisit | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td>24小时完成奖励金</td>
                            <td title="下单时间24小时内完成工单">{{ sharingEstimateDetail.perfSharing.completeInDay | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td>好评设置奖励金</td>
                            <td title="服务完成后，客户在渠道侧给予好评"> {{ sharingEstimateDetail.perfSharing.praise | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td rowspan="3">补贴部分分润</td>
                            <td>远程补贴</td>
                            <td title="上门距离，超过15公里，超过部分按照1.5元/公里结算远程补贴，仅部分渠道有此补贴">{{ sharingEstimateDetail.subsidySharing.distanceSubsidy | fenToYuan }}</td>
                            <td rowspan="4">{{ sharingEstimateDetail.subsidySharing.totalAmount | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td>加急补贴</td>
                            <td title="在晚22点～次日早晨7点之间上门">{{ sharingEstimateDetail.subsidySharing.urgentSubsidy | fenToYuan }}</td>
                        </tr>
                        <tr>
                            <td >区域补贴</td>
                            <td title="对偏远城市，平台给予一定补贴" v-if="sharingEstimateDetail.subsidySharing.areaSubsidyAmount">
                                {{ sharingEstimateDetail.subsidySharing.areaSubsidyAmount | fenToYuan }}
                            </td>
                            <td title="对偏远城市，平台给予一定补贴" v-else>
                                {{ sharingEstimateDetail.subsidySharing.areaSubsidy }}%
                            </td>
                        </tr>
                </table>
            <p class="sharingEstimate-explain">注意：此为该单预估分润金额，最总分润以完成服务为准！</p>
            </div>
    </script>
</th:block>

</body>
</html>